<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <ui:composition template="/templates/default.xhtml">
            <ui:define name="content">
                <h:panelGrid id="panelInfoNewUserLeft" columns="2" title="#{locale.formUserInfo}" >
                    <f:facet name="header">
                        <h:outputText value="#{locale.formUserInfo}"/>
                     </f:facet>
                    <h:outputLabel value="#{locale.formFirstName}:" />
                    <h:outputText value="#{newUser.newUser.firstName}" />
                    <h:outputLabel value="#{locale.formLastName}:" />
                    <h:outputText value="#{newUser.newUser.lastName}"/>
                    <h:outputLabel value="#{locale.formEmail}:" />
                    <h:outputText value="#{newUser.newUser.email}"/>
                    <h:outputLabel value="#{locale.formUsername}:" />
                    <h:outputText value="#{newUser.newUser.userName}"/>
                </h:panelGrid>
                <h:dataTable value="#{newUser.newUser.roles}" var="r" >
                    <f:facet name="header" >
                        <h:outputText value="#{locale.dtHeaderRoles}"/>
                    </f:facet>
                    <h:column>
                        <h:outputText value="#{r}" />
                    </h:column>
                </h:dataTable>
                <h:form>
                    <h:commandButton value="#{locale.buttonBack}" action="#{userList.navToUserList}" />
                    <h:commandButton value="#{locale.buttonAddMore}" action="#{newUser.addNewUser}" />
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

